﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Domain.Entities;

namespace PHMEE
{
    /// <summary>
    /// 阈值实体
    /// </summary>
    public class Threshold : AggregateRoot<Guid>, ISoftDelete
    {
        /// <summary>
        /// 测点外键
        /// </summary>
        public Guid PointId { get; set; }
        /// <summary>
        /// 采集定义外键
        /// </summary>
        public Category Category { get; set; }
        public Guid CategoryId { get; set; }
        /// <summary>
        /// 一级门限
        /// </summary>
        public float? FirstThreshold { get; set; }
        /// <summary>
        /// 二级门限
        /// </summary>
        public float? SecondThreshold { get; set; }
        /// <summary>
        /// 三级门限
        /// </summary>
        public float? ThirdThreshold { get; set; }
        /// <summary>
        /// 四级门限
        /// </summary>
        public float? FourthThreshold { get; set; }
        /// <summary>
        /// 采集定义类型
        /// </summary>
        public LimitParaEnum LimitPara { get; set; }
        /// <summary>
        /// 是否启用--默认不启用
        /// </summary>
        public bool isEnable { get; set; } = false;
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
